//
//  PhoneCheck.m
//  设计模式
//
//  Created by huyang on 2020/7/6.
//  Copyright © 2020 test. All rights reserved.
//

#import "PhoneCheck.h"

@implementation PhoneCheck
-(void)handleCheck:(Person *)checkStr
{
    if (checkStr.phone.length > 0) {
        NSLog(@"手机号码校验通过");
        if (self.block) {
            self.block(YES);
        }
    } else {
        NSLog(@"请输入手机号码");
    }
}




@end
